package com.ruoyi.reptilebytime.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.reptilebytime.mapper.ReptileMapper;
import com.ruoyi.reptilebytime.domain.Reptile;
import com.ruoyi.reptilebytime.service.IReptileService;

/**
 * 定时爬虫Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-08
 */
@Service
public class ReptileServiceImpl implements IReptileService 
{
    @Autowired
    private ReptileMapper reptileMapper;

    /**
     * 查询定时爬虫
     * 
     * @param rId 定时爬虫主键
     * @return 定时爬虫
     */
    @Override
    public Reptile selectReptileByRId(Long rId)
    {
        return reptileMapper.selectReptileByRId(rId);
    }

    /**
     * 查询定时爬虫列表
     * 
     * @param reptile 定时爬虫
     * @return 定时爬虫
     */
    @Override
    public List<Reptile> selectReptileList(Reptile reptile)
    {
        return reptileMapper.selectReptileList(reptile);
    }

    /**
     * 新增定时爬虫
     * 
     * @param reptile 定时爬虫
     * @return 结果
     */
    @Override
    public int insertReptile(Reptile reptile)
    {
        return reptileMapper.insertReptile(reptile);
    }

    /**
     * 修改定时爬虫
     * 
     * @param reptile 定时爬虫
     * @return 结果
     */
    @Override
    public int updateReptile(Reptile reptile)
    {
        return reptileMapper.updateReptile(reptile);
    }

    /**
     * 批量删除定时爬虫
     * 
     * @param rIds 需要删除的定时爬虫主键
     * @return 结果
     */
    @Override
    public int deleteReptileByRIds(Long[] rIds)
    {
        return reptileMapper.deleteReptileByRIds(rIds);
    }

    /**
     * 删除定时爬虫信息
     * 
     * @param rId 定时爬虫主键
     * @return 结果
     */
    @Override
    public int deleteReptileByRId(Long rId)
    {
        return reptileMapper.deleteReptileByRId(rId);
    }
}
